package uml.behavioral.visitor;

/**
 * 访问者--具体元素<br>
 * on 2023/1/3 20:26
 */
public class Teacher implements Candidate{
    private int papers;
    private int fadeBackGrades;
    private String name;

    /**
     * @param papers 论文数量
     * @param fadeBackGrades 教学反馈分数
     * @param name 姓名
     */
    public Teacher(int papers, int fadeBackGrades, String name) {
        this.papers = papers;
        this.fadeBackGrades = fadeBackGrades;
        this.name = name;
    }

    public int getPapers() {
        return papers;
    }

    public void setPapers(int papers) {
        this.papers = papers;
    }

    public int getFadeBackGrades() {
        return fadeBackGrades;
    }

    public void setFadeBackGrades(int fadeBackGrades) {
        this.fadeBackGrades = fadeBackGrades;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void accept(AwardCheck checker) {
        checker.visit(this);
    }
}
